#ifndef CUSTOMERTHREAD_H
#define CUSTOMERTHREAD_H
#include <QThread>
#include <QWaitCondition>

class CustomerThread : public QThread
{
    Q_OBJECT

public:
    CustomerThread(int index, QWaitCondition *hasSpaceCond, QWaitCondition *hasDataCond );
public:
    inline void setStop(){stop = true;}
private:
    bool stop = false;
    int index = 0;
    QWaitCondition *hasSpaceCond;
    QWaitCondition *hasDataCond;

protected:
    void run() override;
};

#endif // CUSTOMERTHREAD_H
